<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="MvcContrib.FluentHtml.ModelViewPage<LogOnForm>" %>
<%@ Import Namespace="AspNetMvcViewBestPractices.Models"%>
<%@ Import Namespace="MvcContrib.FluentHtml"%>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Log On</h2>
 
    <%= Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) { %>
        <div>
            <fieldset>
                <legend>Account Information</legend>
                <p>
                   <%=this.TextBox(m => m.UserName).Label("UserName")%>
                   <%=this.ValidationMessage(m => m.UserName)%>
                </p>
                <p>
                   <%=this.TextBox(m => m.Password).Label("Password")%>
                   <%=this.ValidationMessage(m => m.Password )%>
                </p>
                <p>
                    <%=this.CheckBox(c => c.RememberMe).LabelAfter(" Remember me?","inline")%>
                </p>
                <p>
                    <%=this.SubmitButton("Log On") %>
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
